<% if @follow_setting.status.zhui? %>
<div id='show_zhui' class='tip'>
  每日<b><%= @follow_setting.report_hour %>时</b>通过<%= supports_web %><%= supports_sms %><%= supports_email %>方式提醒我<b><%= t @follow_setting.scope %></b>贴的更新情况
  <%= link_to_remote '✎',
        :update => :setting,
        :url => edit_zhui_tools_zhui_tian_ya_hot_post_url(@hot_post),
        :method => :get,
        :loading => nano_loading('edit_zhui',:only_img => true),
        :html => {
          :class => :new_or_edit,
          :id => :edit_zhui,
          :title => '修改追贴规则'
        }  %>  
  <%= link_to_remote '×',
        :url => give_up_tools_zhui_tian_ya_hot_post_url(@hot_post),
        :method => :put,
        :loading => nano_loading('give_up_zhui',:only_img => true),        
        :complete => "$('zhui').update('【追此帖】');$('zhui').show();Effect.Fade('show_zhui')",
        :html => {
          :class => :delete,
          :id => :give_up_zhui,
          :title => '不追了'
        }  %>
</div>
<script type="text/javascript" charset="utf-8">
  <% if @follow_setting.scope.lz? %>
    if(getValue('scope') == 'all') {
      window.location.href = '<%= tools_zhui_tian_ya_hot_post_url(@follow_setting.hot_post) %>';
    }
  <% else %>
    if(getValue('scope') == 'lz') {
      window.location.href = '<%= tools_zhui_tian_ya_hot_post_url(@follow_setting.hot_post) %>';  
    }
  <% end %>
</script>
<% end %>